"""md URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from .views import *
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    # path('admin/', admin.site.urls),
    path('test/',Test.as_view()),
    path('reg/',Register.as_view()),
    path('imageCode/',ImageCode.as_view()),
    path('sendMes/',SendMes.as_view()),
    path("login/",Login.as_view()),  # jwt的认证接口（路径可自定义任意命名）
    path("bindEmail/",BindEmail.as_view()),
    path('callBackEmail/',CallBackEmail.as_view()),
    path('getArea/',GetArea.as_view()),
    path('home/',Home.as_view()),
    path('getGoodsList/',GetGoodsList.as_view()),
    path('getGoodsByCate/',GetGoodsByCate.as_view()),
    path('cartManage/',CartManage.as_view()),
    path('modifyCart/',ModifyCart.as_view()),
    path('addressManage/',AddressManage.as_view()),
    path('areaManage/',AreaManage.as_view()),
    path('history/',History.as_view()),
    path('orderManage/',OrderManage.as_view()),
    path('pay/',Pay.as_view()),
    path('notify/',Notify.as_view()),
    path('commentMange/',CommentMange.as_view()),
    path('goodsManage/',GoodsManage.as_view()),
    path('collect/',Collect.as_view()),
    path('weibo/',Weibo.as_view()),
    path('weiboCallback/',WeiboCallback.as_view()),
    path('bind/',Bind.as_view()),
    path('search/',BookSearchView.as_view({'get': 'list'}))
]
